/**
 * 邮件管理路由
 */


import Main from '@/components/main'
import parentView from '@/components/parent-view'

const mailManageRouter = {
  path: '/mail-manage',
  name: 'MailManage',
  component: Main,
  meta: {
    // hideInMenu: true,
    keepAlive: true,
    showAlways: true,
    title: '邮件管理',
    access: ['MailManage'],
    // notCache: false,
    icon: '_youjian'
  },
  children: [
    {
      path: 'write-mail',
      name: 'WriteEmail',
      meta: {
        keepAlive: true,
        title: '写邮件',
        access: ['WriteEmail'],
      },
      component: () => import('@/view/mail-manage/write-mail/index.vue')
    },
    {
      path: 'inbox',
      name: 'Mailbox',
      meta: {
        keepAlive: true,
        title: '收件箱',
        access: ['Mailbox'],
      },
      component: () => import('@/view/mail-manage/inbox/index.vue')
    },
    {
      path: 'outbox',
      name: 'Outbox',
      meta: {
        keepAlive: true,
        title: '发件箱',
        access: ['Outbox'],
      },
      component: () => import('@/view/mail-manage/outbox/index.vue')
    },
    {
      path: 'recycle-bin',
      name: 'MailRecovery',
      meta: {
        keepAlive: true,
        title: '回收站',
        access: ['MailRecovery'],
      },
      component: () => import('@/view/mail-manage/recycle-bin/index.vue')
    },
    {
      path: 'mail-detail',
      name: 'mail-detail',
      meta: {
        hideInMenu: true,
        keepAlive: false,
        title: '邮件详情',
        // access: [''],
      },
      component: () => import('@/view/mail-manage/detail/index.vue')
    },
  ]
}

export default mailManageRouter;